enhanced global.js, options.js (additional encapsulation)