fixed spectrum_graph.js