Update infinite-scroll.coffee

Make optional window selector for times when the scroll event is not on document.window