Update index.js

jshint fix