Move all JavaScript to the end of the page

It isn't needed at the top and will slow page loading.
Merge pull request #376 from alphagov/js-at-the-end

Move all JavaScript to the end of the page