Update taskController.js

modify instance property