Fix CollectionView.extend

The extend function was in the prototype instead of the class.
Merge pull request #17 from smvilar/patch-1

Fix CollectionView.extend