Added Khalids changes to basic-chat2 and added chat.js