giving text change function access to the text node in question