AngularJS with firebase as backend