Properly sets windowLoaded if script loaded asynchronously

Previously if the script was loaded asynchronously, it caused an infinite loop to happen in vjs.autosetup.

This fix properly sets vjs.windowLoaded if vjs is loaded after the page is laoded.