renmed chat.js to index.js