refactor guard to match statement.

silences non-standard guard warning.
Send json as text/plain

For IE9 with fineuploader.