Eliminated unnecessary $http injection