nit: define this function above the forEach:

```js
function pullComplete() {
 ...
}
```