fixing the main.js file