Update slopeGraphView.js