       contentsDiv.scrollTop = 0;
        return;
    }

    let pageText = "";
    for(let i=1;i<=5;++i)
    {
        let res = ngramParser(fulltxt,i);
        let lim = Math.min(res.length,100);
        pageText += `[ ${i} Word Sequences ]\n`;
        for(let j=0;j<lim;++j)
        {
            pageText += `${res[j].cnt} - ${res[j].ng}\n`;
        }
        pageText += `\n\n`;
    }
    contentsDiv.innerText = pageText;
    contentsDiv.scrollTop = 0;
}

function endEditElem()
{
   