JS. Some cosmetic changes for pagination links