http interface: support [tex] tags using MathJax