(function($) {
  $.fn.autogrow = function() {
    return this.each(function() {
    var textarea = this;