code: function() {
              var tpl = this.options.template;
  
              //first pass
              $.each(this.map, function(k, v) {
                  v = v[0]; 
                  var r = new RegExp(v+'+'),
                      token = v.length > 1 ? v.substring(1, 2) : v;
                      
                  tpl = tpl.replace(r, '{'+token+'}');
              });
  
              //replace spaces with &nbsp;
              tpl = tpl.replace(/ /g, '&nbsp;');
  
              //second pass
              $.each(this.map, function(k, v) {
                  v = v[0];
                  var token = v.length > 1 ? v.substring(1, 2) : v;
                      
                  tpl = tpl.replace('{'+token+'}', '<select class="'+k+'"></select>');
              });   
  
              return tpl;
          }
docs: /*
  Replace tokens in template with <select> elements