Refactor: moved code in complete and delete methods on TodoItem.prototype; add comments