Using the:

```js
(function($){
   ....
})(jQuery);
```
Allows you to use standard jQuery code without using `jQuery` instead of `$`. Allowing standard jQuery code should be mandatory. So I would write it as:

```js
(function($) {
    $(document).ready(function() {
        $('$selector').carousel($options); 
    }
})(jQuery);
```