move javascript to the end of the page