Separated js files and added specs for each.
Also worked on resizing for scatterChart.js