angularjs tutorial 'todo' app adaptation