Flickity - select method with vanilla JS