I am using following MathJax app code. http://cs.jsu.edu/wordpress/?p=498#comment-217
In following function i am trying to load file from asset directory.
Perhaps the first containing your function setupMathJax() is getting executed before your second has loaded your MathJax file, causing the exception where MathJax is not defnied. Try reversing the order of those tags.
function setupMathJax()
MathJax
MathJax is not defnied