(personal project, please help :( ) create table cells with multiple elements using JS

It’s alright now, I managed to solve it. I just removed the post since no one was interested and because I don’t want to bother people with my monstrous code any further