JS library to handle AJAX requests with pagination and template render