Use ajax for pagination in home page

This allows for pagination to work correctly when used
together with the filtering feature.