chat application with Angular.js