changed scrolling of chat window to a MathJax callback