Find and exec

Terminal
find . -name '*.js' -exec wc -l {} +