extract_text request from your popup (or wherever).extractPageText(), scrapes the page, and replies with the raw text.

First, it listens any kind of messages type but only will trigger a service when the service type is extract_text.

When the listener receives the related request type, it triggers the function to get the scrap the text from the website, then send the scrapted text back to the sender.
