AngularJS and Firebase chat system