See [upgrade guide](http://docs.mathjax.org/en/latest/upgrading/v2.html?highlight=MathJax.Hub#version-2-compatibility-example).