Filter lists of files in Node.