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.
It looks like the MathJax variable won't be set until you load the tag. You should move this into an onload listener. Something like:
MathJax