Fixes some mathjax rendering errors

This should fix Matthew's problem. Ask him to test?