How do i create a function to return a value in a javascript plugin?
<p>i have this countdown timer </p>

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

    var options = {
        display_as_text     : false,
    remaining : 0,
        separator           : ':',
        significant_days    : 3,
    display_on_complete : null, // id of element to display when countdown is complete
    hide_on_complete : null // hide the timer once it hits zero
    };

    $.fn.countdown = function (config_options)
    {
        /*
         * Initialise
         *
         * Prepare data and trigger regular execution of code
         *
         * @param   container   Reference to DOM element where counter will be displayed
         */
        var initialise = function (container){

        }

        var update = function (seconds_remaining){          

        }
</code></pre>

<p>and i need to access the update and reset the time based on a value i send in but i dont know how to access it. Here is how i instantiate the plugin </p>

<pre><code>$('#timer').countdown({remaining : 1000});
</code></pre>

<p>but how do i call the update to update the seconds...I tried to set it to a variable and call it but no go...any ideas</p>
