Added document onload event
Merge pull request #2 from aaronlifshin/patch-1

Added document onload event