make MathJax refresh when preview and save