add mathjax function to display math