cleaned up obsolete $rootScope var declaration