Adding MathJax support, still needs haml cleanup