Add code for tasks-controller.js