Removed unused code from graph.js