change JS for next page links