I now see what you're after. The problem is with this line:
$(this).removeClass('is-checked');
It's only removing .is-checked
from the element that was clicked. This works for checkboxes, but since radios work differently, this isn't going to work. To solve this, do something like this:
$(function () {
$('input[type="checkbox"], input[type="radio"]').on('click', function () {
$(this).parent().wrap('<div>').unwrap();
$('input[type="checkbox"], input[type="radio"]').each(function () {
$(this).is(':checked') ? $(this).addClass('is-checked') : $(this).removeClass('is-checked');
});
});
});