change mathjax loading to secure loading if available