move js to file