Move scripts to the top of page.