added $rootScope as a way to define a firebaseURL