Firebase backend integration for AngularJS