title: using country code as array/object names? scoping issue?
body: <p>could anyone help me with this please, used Canada as example: </p>
  
  <pre><code>var CA = {
      name: "Canada Name",
      iso: "CA",
      percentage: "23.4",
      color: getColor(23.4)
  };
  
  $(function() {
  
      $('#world-map').vectorMap({
          map: 'world_mill_en',
          .
          .
          onRegionTipShow: function(event, wrap, code) {
              wrap.html('hello ' + code); // working, outputs "hello CA"
              console.log(CA.name); // working, outputs "Canada Name"
              console.log(code.name); // not working - undefined
          },
          .
          .
  </code></pre>
  
  <p>How can I use the "code" to refer to the variable (CA in this case)?
  As I see code outputs a string but I just can not turn it to a form that works</p>
  
  <p>Thx</p>