Move JS to end of file