Made the JS attachEvent fire 'onload' not 'load'