Changed to mathjax rendering of math

Default mathjax behaviour is to use $$ ... $$ syntax for display:block-style math rendering. To ensure backwards compatability with what we have been using earlier, where $$ ... $$ renders inline, I have changed the mathjax settings so that $$ .. $$ and $ .. $ is inline, and $$$ ... $$$ is display:block-style.