add js implementation for pagination