Move scripts out of html