Add MathJax

Also some minor cleanup.

Change-Id: I7e98a1fd80bbeeb8592c7ac0eaaa117831c43a4d