Classic collections implemented in JavaScript