datadir in js