title: Convert HTML table in to JavaScript Object
body: <p>I am tring to convert the html table data into something like this:
  <strong><a href="http://jsfiddle.net/Seefeld/y2gdq/7/" rel="nofollow">jsFiddle Demo</a></strong></p>
  
  <pre><code>[{
      name: 'Week 1',
      data: [33.95, 40.68]},
  {
      name: 'Week 2',
      data: [11.99, 16.66]},
  {
      name: 'Week 3',
      data: [1.96, 0.93]},
  {
      name: 'Week 4',
      data: [0, 1.21]}]
  </code></pre>
  
  <p><strong>Method I am using:</strong> </p>
  
  <pre><code>var Consolelog = $('table tbody tr').map(function() {
  
      var $row = $(this);
      return {
          name: $row.find(':nth-child(1)').text(),
          data: $('td:not(:nth-child(1))', this).each( function(){
  
              $(this).text();
  
          })
      };
  
  
  }).get();
  
  console.log(Consolelog);
  alert(Consolelog.toSource());
  </code></pre>
  
  <p><strong>But, this give me something like this:</strong></p>
  
  <pre><code>[{
      name: "Some Data 1 ",
      data: {
          length: 4,
          prevObject: {
              0: ({}),
              context: ({}),
              length: 1
          },
          context: ({}),
          selector: "td:not(:nth-child(1))",
          0: ({}),
          1: ({}),
          2: ({}),
          3: ({})
      }},
  {
      name: "Some Data 1 ",
      data: {
          length: 4,
          prevObject: {
              0: ({}),
              context: ({}),
              length: 1
          },
          context: ({}),
          selector: "td:not(:nth-child(1))",
          0: ({}),
          1: ({}),
          2: ({}),
          3: ({})
      }}]​
  </code></pre>
  
  <p><strong>Any suggestion what I am doing wrong?</strong></p>