updated index.js and index.html for server to interpret what a user types in as a chat message