adding mathjax and supporting fix to layout and css