adjusted js file for links