If I follow, this is not in the d3 API, but rather only valid in the specific case of TreeDemo, right ?
In that case, we should maybe directly create this MutableJavascriptObject as mentionned in line 56.