move collection class to common area, add jasmine test

etc