change mathjax CDN to support SSL.
change templte for easy replacing.