better written as ```var docData = this.documents.pop()``` , then the call to splice line 727 is not needed