Update index.js

Removed unused variables