added js to add the prompt as the first sentence of the create tree field