added a comment explaining main.js