Mimeo Interview Question

Write an implementation of an infinite scrolling function in JavaScript