Adding a parameter to callback function inside of callback function
<p>This might have been asked before, but I can't find any good examples on how to accomplish this.</p>

<p>I have a callback which is fired. But inside this callback i need to add a new parameter to the ending callback function. How can I do this:</p>

<pre><code>var form_to_submit = function() {    
   var parameters = {
       param1 : "1",
       param2 : "2"  
   }
   // do_something with the parameters
}

first_function(form_to_submit);

function first_function(form_to_submit) {
   if($.isFunction(form_to_submit)) {
       var token = "new parameter"; // this parameter should be added to parameters in form_to_submit()
       form_to_submit(); // need to pass on the token to this function call
   }
}
</code></pre>
