js simple collection realization