Closure app doesn't apply 'completed' class to items

There were two problems here: First of all it attempted to add a 'done' class instead of 'completed'. Secondly, the updated node is removed from the DOM right away in a re-rendering step that happens after every state modification. I moved the logic to the template where it works correctly.