Fixing event handler for non jquery slider

Fixing a bug with  non jquery event handler