Update index.js

Fixes global replace of \ to / for the id on Win32 systems, instead of only the first occurence of \.
Merge pull request #4 from andersaloof/patch-1

Update index.js