Trying a different method for $http promises