moved js into html