Clean up main.js
Added git ignore, minor index cleanup