Update index.js

resource