Carousel: Fixed JavaScript issues and moved to new plugin template.