Added comments to main.js file