Use document.createTextNode instead of Text constructor for compatibility sake