Fix a bug of script loading in IE 10.

IE 10 supports both onreadystatechange and onload. However, it will
trigger onreadystatechange before the script executed if the script was
cached.
Fix mouseenter/mouseleave event simulating.