Revised LaTeX support to use MathJax