Update index.js

Removed some unneeded code.