Javascript Check If Background Image Is Loaded