Added bar.js
Data moved into index
Scatter is updated
utils more generic, removed state so can be used with different types of graphs