completing the todomvc example