Highlight word under cursor also in JavaScript