Fixing a couple of bugs with locals
Implementing edit in todomvc