This is the same problem I have when I have two buttons trying to make the fox do different things. The first button successful writes the text while the second yields the aforementioned error.
Am I missing something? Should the variables be cleared before trying to write another textNode to the span? I can't figure out what I am doing wrong.