Set carousel JS behavior