pagination working with javascript
paginator in html and ruby