custom pager with jsrender