Added inf scroll code from working demo.