Update index.js

There are error for value for parsing path.