Can't adjust link in JavaScript that appears before the link that's getting adjusted.