Fixed an issue where the first video loaded would have the quality set too late resulting in videos loading twice. When refreshing a video, it seems that no events are fired early enough to prevent this issue. Counter-intuitively, however, the YouTube API seems to be always ready right after full re-loading. Thus the script is changed to immediately try to change resolution once on load.