Changed an argument name to better describe what it is.
Use the response.root for HTML output as well so we don't get misleading views in browser.