Fixed for jQuery 1.9+ (removed $.browser references), added demo