Added comments to main.js.