Mimeo interview question

Write an implementation of an infinite scrolling function in JavaScript