I'm trying to achieve something quite basic. I am using an openly available jQuery module (called [slides](http://slidesjs.com/)) but i need to modifiy it in a way so that i can control the object from the outside.

Now when initializing like this:

```
$('#myDivId').slides({
    preload: false,
    generatePagination: false
});

```

It all works, but i am not seeing any way to access the slides object later on. Like this:

```
var slideshow=$('#myDivId').slides({
    preload: false,
    generatePagination: false
});

```

Now i would like to be able to do something like this:

```
slideshow.animate('next');

```

The content of the variable *slideshow* is not the actual object. I assume this has something to do with how jQuery works.

Once this works i would be able to make more specific calls to the slideshow and therefore adapt it to work properly in my 'frontend usage environment'. 

Now what i would like to have is the actual generated object to be returned, or at least be additionally available in the returned data.

Can anyone point me in the right direction here?

**[Click here to see demonstration in jsFiddle](http://jsfiddle.net/dwUtY/)**

Thank You!