scaffolding for pagination in place...
js refactoring