integrated with angularjs and firebase