remove global variables in index.js file