Remove window.onload event handler

Since this javascript is placed at the bottom of the file,
the window.onload event is unecessary.