grep --include=*.js -rnw '/path/to/somewhere/' -e "pattern"
find . -name '*.js' -exec grep -i 'string to search for' {} ; -print