Refactoring listing_view.js
Adding tests to the paginable listing view