Update index.js

A few things to make jshint happy.