Fix CollectionView.extend

The extend function was in the prototype instead of the class.