added beforeload event
Merge pull request #1 from k0sukey/beforeload

added beforeload event