What does the line newElement.innerHTML do?
newElement.innerHTML
script
It accesses the created element's contents.