Fixed MyCtrl undefined bug and added a toDoItem factory.