another fix for new jQuery behaviour on emtpy response body
another jQuery-related fix
fixed bug: use DOMNode.appendChild for DOM nodes