use of AngularJS and Firebase