Javascript implementation of Jabber Chat