Update to be compatible with new jQuery versions

Fixed compatibility issue with newer jQuery versions. Dropped the use
of $.browser, using cssHooks, etc.