Fixed directory.js