Adding dependency injection of $http