move js to th end