Smart resizing for textareas using jQuery