Import plotly.js as:
<script type="text/javascript" src="plotly.min.js"></script>or the un-minified version as:
<script type="text/javascript" src="plotly.js" charset="utf-8"></script>To support IE9, put:
<script>if(typeof window.Int16Array !== 'function')document.write("<scri"+"pt src="proxy.php?url=https%3A%2F%2Fgithub.com%2Fextras%2Ftypedarray.min.js"></scr"+"ipt>");</script>before the plotly.js script tag.
To add MathJax, put
<script type="text/javascript" src="mathjax/MathJax.js?config=TeX-AMS-MML_SVG"></script>before the plotly.js script tag. You can grab the relevant MathJax files in ./dist/extras/mathjax/.