moved scripts out of pages.