better global.js