move js to tail