Exported task controller stuff to tasks-controller.js