Change JavaScript timer to be on pageload