js/scatterPlot.js: clean, remove dead code

6 jobs for feature-c/2452 in 2 minutes and 37 seconds (queued for 2 seconds)