Quirky collection classes for javascript