added global.js to the root dir