move some js scripts to end of html