Update index.js

working with full swarmigent build