data structures for js libraries