Fix issue script.onload not working on IE 8.