Update slopeGraph.js