Update infinite-scroll.coffee

Fix issue with containing element calculation