Make MathJax optional
Encapsulate getting language