I believe this whole switch could be `if (/\.(js|coffee|litcoffee)$/.test(extname) { filePath += '.js'}`