Update taskFunctions.js