Changed $http var to request