set output in hidden textarea
log output with getOutput function