A basic javascript paginator for Node.js