rename index.js to chat.js