renamed main.js to index.js