Include and configure MathJax

Now LaTeX formulae will be automatically LaTeXed.

This is done only for the main layout, "simple_layout" is not changed.