consolidated custom javascript into collections-view.js