Refactor background script to differentiate between different pages