Added compiled bundle.js to .gitignore (may need to be more leniant in the future)
Removed now ignored bundle.js
Fixed for loop in main.js so as to avoid an infinite loop