more updated js for pagination/bootstrap home page