Added MathJax support for rendering matrices. Fixed createCopy.