improve JS to autoselect textarea if only 1