Pagination polishing, JS, disable empty link clicks