Build a js digest of a directory