Made the JS attachEvent fire 'onload' not 'load'
Merge pull request #153 from culshaw/master

Made the JS attachEvent fire 'onload' not 'load'  - Fixes #152