ad of Massive File:\n${lastfile.name} (${filesizemb.toFixed(0)} mb)\nPlease wait, this may take a long time...`;
    } else {
        reader.readAsText(lastfile);
    }

}
function clearfile()
{
    lastfile = null;
    document.getElementById('pickfile').value = "";
}
function countWords(str) {
    if (str == "") { return 0; }
    const wordPattern = /[a-zA-Z0-9_]+/g;
    const words = str.match(wordPattern);
    if (!words) {
        return 0;
    }
    return words.length;
}
function 