serve mathjax locally for html preview and learning pane