Update index.js
Merge pull request #1 from anthonyshort/patch-1

Coupla fixes