Adding mathjax feature
Update idp.py

Fix enrollment bug.
Minor improvements when invoking mathjax