Add $location and $rootScope.