Update grep.js

Fix erroneous result