Preview

Added preview logic using MathJax. To get this to work, I changed LaTeX output environment from tabular to array.