added collection example in main.js