An AngularJS app communicate with Firebase