move js to the bottom of the file