Ancient Ajax chat app (archived for posterity; seriously, don't use this)