fixed typo
added chat.js
added missing id for input