added MathJax support
added MathJax support in document-view
fixed a bug in the fragments criteria