update to index and main.js