Update index.js

interval value missing
Merge pull request #2 from davidonet/patch-1

Thanks!