changed detail.html back to using document.asHtml for now