Adds AJAX pagination to the post view