fix parsing response header for JQuery