chatting application with angularjs