Carousel script had rewritten with the help of coffee-script