Adds DOM link updating to the script.