Create chart-controller.js