correct analysis of whether mathjax is used or not