fix appendNode to really return JSJaCPacket, not some XML node.