add javascript for add/deleting tasks