I am trying to reduce the global variables in my Chrome extension to reduce the \'spaghettiness\' or ambiguity in my JavaScript.
I am trying to attempt this by having