pure javasript pagination plugin, v1.0