turned the scatterplot into a reuseable coffeescript class