[javascript] How to get the text node of an element?