Updating links in JS source