Auto-highlighter in JavaScript for chrome extension