Implemented a PaginatingViewModel in javascript that bundles the "endless scrolling" behaviour using pagination from the server side. First attempt at making re-usable javascript so it's a bit messy still.