Minor changes to textArea.append