updated graph.js to most recent version and improved example accordingly