javascript directory