Moved script block to bottom of document.