Move javascript to the end of the page.