Use find -name "*.js" to find JS files instead of find | grep.