Added a trigger for new chat message in app.js