Use reverse while loop instead to speed things up. Here is how:
```js
var features = row.getElementsByTagName('td'),
     len = features.length;
while (len--) {
     featAtt = features[len].innerHTML.replace(/(<br\ ?\/?>)+/, '\n');
     ...
}
```