Added better error handling + updated MathJax url.