node script to list files in a path and filter by extension