A few more compatibility fixes for jQuery 1.2+