Update main.js

Don not add a new line at the end of the iteration.
Merge pull request #4 from claudiojs/patch-1

Update main.js - seems reasonable! Thank you