Update collectionapi.js

Remove CORS for debug.