Save preview in script.MathJax to fix issue #975.