Move all script loading to the end of the page.