Update collectionapi.js

CORS opened