Caching to improve perfomance

Caching $(textarea) objects rather than calling $() repeatedly.