Update index.js

Fixed variable name typo