we can have a single threat
an array and an object in js
trying out various tree libs
i learned how js might do a tree