Update recreate-collection-functions.js