fix badge flag
update main.js comments