Fixing bug in mathjax script