added a mathpost to only add js for mathjax when neccesary