Update grep.js

Fix failing tests