$val = link.name;
$val = $val.replace(/_/g, " "); // "_" to " "
link.setName($val);

こんな感じ