Support for JSON response in Chrome and Firefox

Before I received the response wrapped in <pre>-tags in both Firefox and Chrome. Firefox still wraps response in <pre>-tags with innerText. I got an error in <= IE8 when using textContent. So used innerText there which parses fine.