Add MathJax config settings and MathJax link to footer template