Update index.js

fs.mkdir -> fs.mkdirSync