On IE and Edge, every sentence becomes prefixed with the string "null". This appears to be caused by the code that clears the element content with:
el.innerHTML = null;
Changing that to a blank string fixes the issue for me, i.e. el.innerHTML = "";