Added debugging for content script messaging