moving global.js