Calculate & return bottom position of the vertical scroll
$ npm install scroll-bottom
Simply require and call it.
var scrollBottom = require('scroll-bottom')
var on = require('dom-event')
on(window, 'scroll', function () {
console.log('scroll bottom =', scrollBottom())
})