Refactoring czBarChart.js