A JavaScript utility for creating and arranging trees in a node-based schema