search text in files javascript