render mathjax on demand