forgot chat.js
more modular socketry