Structure Changes to Material Links and Better JQuery DOM Replacement