Renamed directory. Ported dirmapper to JS.