Commented schat.js

Hopefully this will explain a bit more about the code, tried to make it
as detailed as I can. Also includes a couple improvement suggestions
(that I might add).
Commented schat.js (added a bit more)
Commented chat.js a bit

(not much)