Move multiple javascript function calls to single onLoad