This should be `this[ this.collectionName ] = collection;` otherwise you will blow away any previously set collection which is the point of line 43