+function ($) {
  'use strict';

  $(document).on("change", "[data-toggle='tag'] input[type]", function(e){
    var $input = $(e.target);
    var $group = $input.parents("."+CLASSMAP.tagGroup);
    $group.find("input[type]").each(function() {
      var $this = $(this);
      var checked = $this.is(":checked");
      $this.parents(".tag")[checked ? "addClass" : "removeClass"]("active");
    });
  })
  $(document).on("click", "[data-toggle='tag'] [name='remove']", function(e){
    var $btn = $(e.target);
    $btn.parents(".tag").remove();
  })

}(jQuery);

@@ -47,19 +47,19 @@
 .on(
-%22
+'
 change
-%22, %22
+', '
 %5Bdat
@@ -67,21 +67,21 @@
 -toggle=
-'tag'
+%22tag%22
 %5D input%5B
@@ -85,17 +85,17 @@
 ut%5Btype%5D
-%22
+'
 , functi
@@ -88,35 +88,37 @@
 type%5D', function
+ 
 (e)
+ 
 %7B%0A    var $input
@@ -169,12 +169,14 @@
 nts(
-%22.%22+
+'.' + 
 CLAS
@@ -207,17 +207,17 @@
 up.find(
-%22
+'
 input%5Bty
@@ -219,17 +219,17 @@
 ut%5Btype%5D
-%22
+'
 ).each(f
@@ -235,16 +235,17 @@
 function
+ 
 () %7B%0A   
@@ -301,17 +301,17 @@
 .is(
-%22
+'
 :checked
 %22);%0A
@@ -306,17 +306,17 @@
 :checked
-%22
+'
 );%0A     
@@ -330,22 +330,22 @@
 parents(
-%22
+'
 .tag
-%22
+'
 )%5Bchecke
@@ -352,17 +352,17 @@
 d ? 
-%22
+'
 addClass
 %22 : 
@@ -361,13 +361,13 @@
 lass
-%22 : %22
+' : '
 remo
@@ -377,19 +377,19 @@
 lass
-%22%5D(%22
+'%5D('
 active
-%22
+'
 );%0A 
@@ -421,18 +421,18 @@
 .on(
-%22
+'
 click
-%22, %22
+', '
 %5Bdat
@@ -444,21 +444,21 @@
 gle=
-'tag'
+%22tag%22
 %5D %5Bname=
 'rem
@@ -457,18 +457,18 @@
 ame=
-'
+%22
 remove
-'%5D%22
+%22%5D'
 , fu
@@ -473,19 +473,21 @@
 function
+ 
 (e)
+ 
 %7B%0A    va
@@ -529,14 +529,14 @@
 nts(
-%22
+'
 .tag
-%22
+'
 ).re

fix jscs error