Update index.js

I added the loop to change ' ' to '_'.
Merge pull request #1 from mjsquadr/patch-1

Update index.js