const sliders = document.querySelectorAll('.crystal-slider'); for (slider of sliders) { new CrystalSlider({ selector: slider }); }