when the protocol is file:, use the http link for the MathJax URL, otherwise use the protocol relative URL