Update index.js

interval value missing