Updated Index and Main.js