I think you should be doing:
```js
node[0].nodeValue = interpolateFn()
```
that way any part of the text node that are not interpolated would still be present