A small piece of JS code which does simple table pagination.