Update index.js

A few things to make jshint happy.
Merge pull request #23 from ghchinoy/master

Update index.js