Improved code, changed library, added license

As KaTeX had too many symbols missing and a not-that-good render for
composite functions (like sums or limits) I changed it to MathJax, added
back all the missing symbols (a few are still missing, but are mostly
variants or others that I never saw before).

Improved the readme.