Update index.js

Fixed variable name typo
Merge pull request #1 from CSNW/variable-typo

Fixed variable name typo