Added comments on main.js