added MathJax checks