force json response to send text/plain header

Fixes #2194. Change the content type of JsonResponse to text/plain which then triggers the complete event in IE9.

Change seems to have no adverse effect on other browsers which seem to interpret json normally.