added index and main.js