moved js to html