fixed typos in task.js