Update main.js

fixed error on for loops