Change the logic of loading MathJax