grep in js + remove npm autocomplete