graph.js improvements