if (!document.getElementById(id)) {
                var div = '';
                div += '<div id="' + id + '" class="bubble" onmousedown="startDrag(this)" style="display: none">';
-               div += '<a href="#" onclick="' +"document.getElementById('" + id + "').style.display='none'" + '">Close</a>';
+               div += '<a href="#" onclick="' +"$('#" + id + "').hide('slow')" + '">Close</a>';
                div += '<div id="' + id + 'Chat" class="bubbleChat"></div>';
                div += '<form id="' + id + 'Form" class="bubbleForm" onsubmit="return sendChatMessage(this,' + "'" + nick + "');" + '" action="#">';
                div += '<input type="text" name="text" id="' + id + 'Text" class="bubbleForm"/>';
        var to = iq.getAttribute('to');
        var from = iq.getAttribute('from');
        var type = iq.getAttribute('type');
-       var content = iq.childNodes;
 
-       var reply = $iq({to: from, from: to, type: 'error'}).cnode(content).up().c('error', {type: 'cancel'}).c('feature-not-implemented', {xmlns: 'urn:ietf:params:xml:ns:xmpp-stanzas'});
+       //FIXME: Clients SHOULD send the content of the original stanza back for analysis
+
+       var reply = $iq({to: from, from: to, type: 'error'}).c('error', {type: 'cancel'}).c('feature-not-implemented', {xmlns: 'urn:ietf:params:xml:ns:xmpp-stanzas'});
 
        connection.send(reply.tree());