Finish loading MathJax only if MathJax is available
Merge branch 'dev' into gh-pages