       valmod = true;
                val = v2;
            }
            nodecount += 1;
            if (useHtml) {
                tot += `<span class='nest1'>[${formatHtml(key)}]</span><br>${valmod ? val : formatHtml(val)}<br><br>`;
            } else {
                tot += `\n\n${val}`;
            }

        }
    }
    }

    if(document.getElementById('minwords').value != "" || document.getElementById('maxwords').value != "" || document.getElementById('showdetail').value=="words")
  