AngularJS and Firebase skeleton