Any reason this is declared all funkily?  Seems like it could just be:
```
function nextUntitledDocumentPath (counter, fileExt) {
    return _untitledDocumentPath + "/" + Strings.UNTITLED + "-" + counter + fileExt;
}
```