var label = image.after(document.createTextNode('text'));
will be
var label = image.after($.text('text'));