re: latex, mathjax is a thing that i am soon going to be using for website latexing and it seems quite good if you want something client side