adding to index and main.js help