A Javascript Implementation of Array Collection