Refactor mathjax-helper explicitly as an object

As opposed to through module.exports.<member>
Add per preview toggling of LaTex rendering