Remove chat.js and add main.js