changed output printing from .text() to .val() because the first one was breaking if you typed anything into the output textarea