Added new changes to main.js