replaced responseHead with responseText