Chat application using JS and Node.js