Make tests pass in jQuery 1.9