Chrome: content script refactored