How to update only the text of a DIV and not any other child node
===

    <div id='container'>
      This is some text
      <span> more text </span>
    </div>

How can I update only the text section ("This is some text") while not affecting the "span" ?