MDL-66307 js: fix path handling on Windows