pulling js out of html