add pager

refs #2
change js

refs #2