Add JS main method.
Text input to textarea.