Update index.js

Remove duplicated lines.