wait before directory javascript loads

reason: sometimes, javascript-added rows would not appear when
creating directory definition