made changes to main.js