Modified main.js