mapping getTodos $http response to an array with $id properties