I had this old jQuery UI slider that had worked just fine a few months ago, but now I seem to be getting an exception reading: Cannot call method \'addClass\' of undefined.
I had this issue with latest versions, too. The solution is easy: use parseInt() to pass dynamic values to sliders Setter example for jquery ui slider:
$("#mySlider").slider("option",{min: parseInt(value.min), max:parseInt(value.max),value: parseInt(value.active)});