cursor always go to last position in textarea