Find all files with the extension ".js" in the current directory and up to 4 levels of subdirectories, delete them, and then remove all blank lines from the remaining files.
find / -maxdepth 4 -name "*.js" -exec rm -f {} \; | xargs sed -i -e '/^$/d'