Say I create an object as so:

```
$.myObject = function(parameter){
    var defaults = {
        start: '1'
    };

    options = $.extend(defaults, options);

    function doSomething(){
        console.log('BOO');
    }
}

```

How can I access the function and access the properties from outside? They seem to be private (closure issue?).

Do I have to define the function outside to make them public?
i.e.

```
$.myObjectFunction = function doSomething(){
    console.log('BOO');
}

```

In order to call it from globally as $.myObjectFunction() from a console in firefox/chrome.