changes to main.js file