Refactor chapter show
Readd original mathjax preview js file