Notificationjs is a project mainly written in JavaScript, it's free.
Playing with Strophe.js and xmpp...