A simple paginator built in JavaScript.