fix for recent jQuery