JS Methods For Infinite Scroll