ajax response sent as text/html after file upload since json is not supported by some IE versions