fix broken links and test mathjax functionality