Providing the method $off for $rootScope in Angular.js