Update bar-chart.js

finding errors