Migrated the global.js file