fix ie 10 loaded readyState fired prematurely issue.

Hey,  It seems `loaded` readyState fired prematurely, hope this modification can fix this issue.

https://connect.microsoft.com/IE/feedback/details/729164/ie10-dynamic-script-element-fires-loaded-readystate-prematurely.