fix chat.js indentation