addSpansTo = verseElem => {
verseTag;
let newText = ``;
let text = verseElem.innerHTML;
let wordStart = text.search(/\S/);
while (wordStart != -1) {
newText += text.substr(0, wordStart);
text = text.substr(wordStart);
let wordEnd = text.search(/\s/);
if (wordEnd == -1) wordEnd = text.length;
newText += `<span>` + text.substr(0, wordEnd) + `</span>`;
text = text.substr(wordEnd);
wordStart = text.search(/\S/);
}
return `<dla-verse class="verse">${newText}</dla-verse>`;
}