some fixes for the mathjax handling, but it will need replacing eventually
Merge branch 'master' of https://github.com/ftzeng/nomadic