Replaced MathJax w/ custom rendering

improved math view structure, + other minor improvements