JavaScript, jQuery - How would I reuse this function properly
<p>Maybe Im just confusing myself due to being pressed for time, but how would I reuse this function without reloading the page itself? </p>

<pre><code>$(function() {

    var uploadqueue = $("#uploader").pluploadQueue({
        // General settings
        runtimes : 'html4,silverlight',
        url : 'upload_file.json?hdfs_url=&lt;%=@file_name%&gt;&amp;authenticity_token=&lt;%= form_authenticity_token %&gt;',
        max_file_size : '100000000000mb',
        //chunk_size : '1mb',
        unique_names : true,
        multipart: false,
        multiple_queues: true, 
        //multipart_params: {  
        //"authenticity_token" : '&lt;%= form_authenticity_token %&gt;'  
        //},

        // Flash settings
        flash_swf_url : 'javascripts/plupload/plupload.flash.swf',

        // Silverlight settings
        silverlight_xap_url : 'javascripts/plupload/plupload.silverlight.xap',
        init : {

                    Refresh: function(up) {
                        // Called when upload shim is moved
                        $(".plupload_header_title").text("Upload files to HDFS");
                        $(".plupload_header_text").text("Files will go in: &lt;%=@file_name%&gt;");
                    },
                    StateChanged: function(up) {
                        // Called when upload shim is moved
                        $.get("file_tree?dir=&lt;%=@file_name%&gt;", function(data){

                            //alert("&lt;%=@rel_link%&gt;")
                            //alert("Command = ul[name*='&lt;%=@rel_link%&gt;']")
                            //alert("Data Loaded: " + $("ul[name*='&lt;%=@rel_link%&gt;']").html()); 
                            $("ul[name*='&lt;%=@rel_link%&gt;']").html($(data).children());                       
                        });

                    }
                }

    });
</code></pre>
