fix index.html
move caret to end of text when editing existing node