Removed $.contains for compatibility with jQuery 1.3.x (Fixes #352)