Update index.js

Passed dependencies options to recursive call