Changing a function into a lambda to preserve `this`.

The previous version tried to execute `getINodeAndDirListing` on the
`window` object. Whoops.