move js to end