wasn't calling setSelectionRange on node