Escape prefix path on JavaScript variable to avoid Windows path error