word frequency analysis in a chrome extension