edited main.js comments for learning structure