moving JS to end of page