Fixed JSON output format to be compatible with jquery-file-upload https://github.com/blueimp/jQuery-File-Upload/wiki/JSON-Response