Update index.js

scope added