Javascript mark words as found