jquery.ui.fancyslider: removing Core dependency

It only depended on Core for a utility method (isValidNumber), so we
just use native math instead.