escape root path for JS correctly

or the application cannot start in directory like C:\xdk