Exposed collection in index.js and fixed forEach