I suspect it's because it is getting to this bit before MathJax is loaded.
MathJax does load afterwards and renders your math OK (and doesn't need the above), without further error.
I would suggest trying either:
(1) Removing the "resetEquationNumbers, Typeset" bit, since it's not necessary and causing your error; or (and I think the following is better):
(2) Not loading your MathJax from within your jQuery. Just load it at the bottom of the page, so it's ready to perform its magic. (It has nothing to do but load at this point.)
Then in your jQuery, you can do the following so MathJax will process the math after all your MathML has loaded:
<script type="text/javascript">
MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
</script>
It will be happy to run because MathJax is already defined and has been patiently waiting for something to do.
Hope it helps.
Regards
Murray