The pagination on the list product page on my site reload with Ajax when clicked. 

I want to add a jQuery event that fires when a page is selected with the pagination. It should scroll the user to the top of the page. This is what I have so far, unfortunately it only fires once.

```
$( "li.page.curved_mini" ).on('click', function() {
    $('html, body').animate({scrollTop: '0px'}, 800);
});

```