Create recreate-collection-functions.js