commented main.js a bit more