Update save_graph.js