javascript code related to MathML and MathJax