finish collection js