Update index.js

Fixes global replace of \ to / for the id on Win32 systems, instead of only the first occurence of \.