IE 11 fixes - use textContent instead of innerHTML

Sorry guys created a new PR for this as I don't know how to fix someone elses PR. This should merge automatically