fixed firefox issue with close_content

the previous implementation used .innerText, this has been removed in favor for document.createTextNode()