If these are decent people just immature maybe try something simple like friendly "be nice" or "that's not cool". It'll give them a pretty clear hint that those comments aren't ok with you. It's a lot harder to change anyone's mind so I'll let that one go until you're more comfortable in you situation.