added comments to the globals.js file