Update ext-mathjax.js

Bugfix and Apache license.