fix for jquery-ui-slider + jquery > 1.8 incompatibility