Reaction kinetics of glycidyl trimethyl ammonium chloride and chitosan in 1-allyl-3-methylimidazolium chloride