Added comments
Added script src
Moved the socket.io listening block down and fixed some typos
Changed input fields from classes to ids
Added chat.js