update graph.js