Update index.js

working directory for changed