converts a JS object into a nice and readable tree structure for the console
Create custom tree in cli