slideshow snipp does not work

hi there

when i run this snipp it work fine but when copy it to my yii project it does not work properly

snipp link

errors from console in inspect element:

Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead jquery-1.10.2.min.js:1 is being assigned a //# sourceMappingURL, but already has one

TypeError: $(...).carousel is not a function index.php:375

Use of getPreventDefault() is deprecated.  Use defaultPrevented instead.