removed weird conedcode that seems to serve no purpose other then to break later versions of jquery
added back in weird code that I have no idea what does, fixed unchecking code