move js to html file