 = `Error: Could not load dataset file: ${lastfile.name}`;
        }

    }

    const reader = new FileReader();
    reader.onload = function (e) {
        let loadok = false;
        try
        {
            //try normal json
            newdb = JSON.parse(e.target.result);
            loadok = true;
        }
        catch(err)
        {
            console.log(err);
            //try jsonl
            try
            {
                const content = e.target.result;
              