Set the title correctly

This change sets the document title to the contents of the first
<h1> tag.

Also, remove a dependency on MathJax.