moved js out of html page