Updated infinite scroll to use pushstate to keep track of the page.