Update drawgraph.js