Data structures implemented in OO JavaScript