adding support for jquery 1.5.2