coffeescript variable to form value
===

Ok, so I have this inside a form      

    <INPUT type="text" name="inputbox" value="">
    <INPUT TYPE="button" NAME="button2" Value="Write" onClick="writeText(this.form)">

and I have the following generated javascript from coffeescript

    (function() {
      var writeText;

      writeText = function(form) {
        return form.inputbox.value = "ping";
      };

    }).call(this);

I need to know how do I call writeText?

as it is when I click the button nothing happens....if I remove the function(){}.call(this) wrapper it works.

I cannot remove the wrapper. I need to know how to call writeText with the .call(this) in place.

