Script for communication between bg and content script