I want to make an array of all numbers. Here is my code:

```js
$(function(){ // dom ready
    $('tr').each(function() {
      var nums = $(this).map(function() {
          return (this).find('td:nth-child(3)').text()
      }).get();
      console.log(nums);
    })
})
```

```html
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<table>
    <tbody>
        <tr>
        <td>760</td>
        <td>John</td>
        </tr>
        <tr>
        <td>532</td>
        <td>Peter</td>
        </tr>
        <tr>
        <td>201</td>
        <td>Martin</td>
        </tr>
        <tr>
        <td>12</td>
        <td>Barman</td>
        </tr>
    </tbody>
</table>
```

What's wrong with it and how can I fix it?