Update collection.js