Hi Piotr,
It looks like you might have gotten mixed up while upgrading jQuery UI.
Line 2 in jquery-ui-1.8.6.custom.js indicates that the version is in fact 1.8.16, not 1.8.6. Latest advertised version on jQuery website also seems to be 1.8.16
Rouslan