Moved scripts block to the end of the template.

Pages should load faster now.