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

ugly silent bug