updated chat.js "New Chat"

Added the code for the new chat button.