JavaScript class that pages data from an observable array