moved js file out of html page