Update templates to avoid reloading MathJax from CDN all the time.