Fixed pager urls in JS