Fix JS bug for slideshow (color picker)