update org.ibex.js.Directory for new api