converting TodoService.addTodo to use $http