modified carousel.js

namespaced the functions