ndex == 0){
                            let tr = table.createTHead();
                            for (let col of row) {
                                let th = document.createElement("th");
                                th.innerHTML = col;
                                tr.appendChild(th);
                            }
                            body = table.createTBody();
                        }
                        else{
                            let tr = body.insertRow();
                   