Upgrading Mathjax to version 4

I just pushed a fix for Katex, let me know if it works, I need to run it by @david to confirm it is safe, our pattern for loading CSS is not compatible with relative links inside the CSS file cause we are embedding a stylesheet