Update main.js

Slider click event fix