javascript dir help module