removed ng-reousrce in favor of $http