Added MathJax functionality