move js to the end