Add missing var to index.js and add IntelliJ IDEA project files to .gitignore