Should be 
```js
out += Array(indent+1).join(' ') + '- ';
```
to work with indented blocks