move js to each page