Added comments in global.js