fix for Firefox wrapping our JSON response in <pre> tags for document create and document update