added directory.js to ease development