moved globals.js to index.js and updated package.json