Add a check to the 'onload' handler when loading scripts so it is not executed twice in IE