Update collection.js

use "q"
Merge pull request #2 from ksky521/master

Update collection.js