move mathjax.js to the top

Fixes #2