Javascript Snippet: Accessing global variables from document namespace in a jetpack
How to access a global variables from document namespace in a Jetpack (after all global variables are document properties).
var win = doc.defaultView.wrappedJSObject;