javascript link update