Changed index and main.js