java implementation of https://github.com/tpbarron/mathjax without use of javascript