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