readDirectory.js exports at root level