Tweak the js page loading