Very simple data structures in JavaScript