I finally got it, it turns out i had another script (jquery.slider.min - jquery slider plugin) which overrides the slider() function of jquery-ui framework and it uses the callback() function to detect the value change of the slider.