Pass response data to $scope