Initialize background script