Update carousel.js

Carousel.js relied on a globally scoped "panels" variable (eg. in the demo). If this was locally scoped or not called "panels" then Carousel.js would fail