incorporate clincher's fix for jquery wrappers from pull request