Repositioning scripts at end of page.
Removing block 'scripts' and keeping the block 'endScripts' instead