> node.get(0).onreadystatechange = function () { It's setting an event handler for a readystatechange on the first DOM node in a jQuery object. If the element only has one DOM node, you should be able to do it this way as well using jQuery's .bind() method:
node.bind("readystatechange", function() {