Switch order of formats in FileController#index respond_to block
Returning json responses with content type text/html for IE