Make compatible with MathJax 3.x
Had to update way that dynamic content retriggers rendering by MathJax. Handling asynchronous loading of MathJax is complicated and current approach just waits 0.5 s for MathJax to finish loading if it is not ready when the questions are displayed. May not be enough on all systems.