Updated publishCollection.coffee