change the syntax of the array in global.js