added collection.js and each