Added ajax & updated mathjax

Can now select document, equation and view rendered equation without
reloading page.