Fixed an ie 9/10 bug where load event was double firing

Issue came from previous bug fix. Used
http://msdn.microsoft.com/en-us/library/ie/hh180173(v=vs.85).aspx to
reference appropriate IE loading of scripts with onload events.
Further code clean up based on ie doc on script loading