Fix MathJax compatibility