Update index.js

Removed unneeded code.