Update index.js

for @nickjj