Basic efficient data structures for JavaScript