pagination helper refactored to use standard HTML rather than be reliant on cubex's htmlElement