edited the main.js file