// $.fn.carousel already occupied by legacy plugin. Need to use a different name for Bootstrap 4's carousel. var carouselBootstrap4 = $.fn.carousel.noConflict() $.fn.carouselBootstrap4 = carouselBootstrap4