Update main.js

updated comments