fixed oddities revealed by jQuery 1.9