implemented jQuery .realParent and .parent