added index.js and .gitignore