add comments to main.js