Moved js out of html