Integrate MathJax into SVG Diagram