added update and delete routes
added methods for update and delete
updating js for updating, saving and deleting todos.