[javascript] Add a string of text into an input field when user clicks a button