Add a debounce to the MathJax previewer

Adds a debounce to the MathJax previewer to fix performance issues when typing equations.