moved collectionApi.addCollection to api.js