fixing global.js in build