an example with $http backend