JSON from Wordpress

I am new to all of this and thought I had it figured out. I’m trying to get a json feed from a wordpress, but I can’t seem to get this to work. What is wrong with my code?

app.controller(‘FeedCtrl’, function($http, $scope, $ionicLoading) {
console.log(“Loading FeedCtrl”);

$scope.stories = [];

function loadStories(params, callback) {
$http.get(‘http://public-api.wordpress.com/rest/v1/freshly-pressed/’, {params: params})
.success(function(response) {
var stories = [];
angular.forEach(response.data.children, function(child) {
stories.push(child.data);
});
callback(stories);
});
}

$scope.loadOlderStories = function() {
var params = {};
if ($scope.stories.length > 0) {
params[‘after’] = $scope.stories[$scope.stories.length - 1].name;
}
loadStories(params, function(olderStories) {
$scope.stories = $scope.stories.concat(olderStories);
$scope.$broadcast(‘scroll.infiniteScrollComplete’);
});
};

$scope.loadNewerStories = function() {
var params = {‘before’: $scope.stories[0].name};
loadStories(params, function(newerStories) {
$scope.stories = newerStories.concat($scope.stories);
$scope.$broadcast(‘scroll.refreshComplete’);
});
};