Fix invalid result returned for jQuery.html