Why not just expect the files to be named `*.js` and ignore anything else?