Update main.js

added comments about the different colored lines