Make textarea auto resize feature more responsive

Hi,

I changed a little bit the function that auto resizes a textarea in order for it to be more responsive.
Since I am using the keydown event I had to wrap the core of the function in a `setTimeout` in order for the right height to be calculated.