Why add $rootScope, $location when You never use those?