finished the module chat.js