Added in support for calling pageload event on pageload.