Added simple_chat code after JSLint cleanup.