Update task to REST API using bound update function in JavaScript.
Toggle task 'done' flag.
Batch delete of completed tasks from client.