emit MathJax configuration script where necessary