var currentTab; // Set the currentTab variable chrome.tabs.query({active: true, currentWindow: true}, Cu.waiveXrays(function(tabs) { currentTab = tabs[0]; }));
var bgPage; // Set the bgPage variable chrome.runtime.getBackgroundPage(Cu.waiveXrays(function(page) { bgPage = page; }));Package Library: Cu is not a standalone package library, but a part of the Chrome Extension framework.