Add pager feature and minot tweaks of jshint