strophe.js

Strophe.js is an XMPP library for JavaScript

xmppmessagebrowser

http://strophe.im/strophejs