Pager functionality implemented in bacon.js