It might be worth writing this a bit more out for readability:
```
var day = d.getDate();
var month = d.getMonth() + 1;
var year = d.getFullYear();
return [day, month, year].join('/');
```