XMPP JavaScript Client using WebSocket