modified get textarea cursor position add insertStr