Mark a task as done using Ajax