Moved js to html