To run, right-click on graph-demo.html in Intellij ans show in browser. Intellij automatically uses a webserver to show it so you don't need to worry about cross-domain errors.