A node.js module for paging through javascript array