As an FYI, we can also do "folderNode.dataset.dataType = folder.type;" here.  https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.dataset has more details.  Doing what we're doing here and above also works, it's just a useful tidbit!