Update TaskController.js

Added functionality to support select all feature.