 $('input[type=radio]').on("change", function() {      var label = $(this).next("label");      var dot = label.find(".dot");      var tagbox = $(this).closest(".tagbox");      var cancel = label.find(".cancel--tagbox");      var color = label.data("rgb");      var rgb = `rgb(${color})`;      var contrast = darkness(color) ? "#000000" : "#fdfdfd";        if (