Update js function collection.js