I have a belief with which many people disagree, but it makes sense to me. That is if no one is harmed by your jokes, they are okay. Clearly it is not okay to make jokes in people's earshot when it might cause them emotional pain. When somebody cannot and will not hear the jokes, it's okay. "No harm, no foul."