inject $http correctly