working requirejs with chrome.extension api