Call updateState() after MathJax has finished.