refactored the global.js