fixing vornoi if statement on scatterChart.js