remove unused js and doing the chat