Move js out of html