Update index.js

Fixed: doesn't work properly if any auto-created files like .DS_Store presented inside folder
Merge pull request #6 from abelozerov/patch-1

ddocs doesn't work properly if any auto-created files like .DS_Store presented inside folder