Move JavaScript includes to the bottom of HTML pages

We don't want to wait around for JS to load and run before displaying
text, images etc.
Add some MathJax configuration

By default, MathJax will display a little message box from time to time
informing the user that it's loading various files etc. We don't want that.