Oh no, I think you misunderstand. scrollMaxY is the var calculate on line 43, window.scrollMaxY is a non standard impl in Fx so, if it is implemented I return the value it returns else, I return the value calculated on line 43. This is the same function used by infinite scroll.