A fairly lame tcp chat server in Javascript