Jquery plugin pagination