following 'shrinking II' from https://github.com/mathjax/MathJax/wiki/Shrinking-MathJax-for-%22local%22-installation