config app.js for chat tutorial