added chat functionality with AngularJS