update simple-graph.js