A JavaScript library for collecting data from tree data structures