a js plugin to render pagenav html