Since MathJax deals with presentation, it should be called inside the render methods of the views. The router should only deal with obtaining data and passing it to the views, but not with presentation. This call should only be made when rendering text solutions, teacher comments, and a few other places.

The third element of the parameters arrays selects a css class ```.classes```, but there is no element in the html with that class. So getting the first element of such selection always returns undefined.