C++11 has four character types:
char: 1 byte
wchar_t: unspecified character type equal to or larger than char (in practice, 16-bit on some platforms, 32-bit on others)
char16_t: 16-bit quantity representing a UTF-16 code unit
char32_t: 32-bit quantity representing a Unicode code point
JavaScript strings, unfortunately, happen to be defined as arrays of UTF-16 code units.
Thus, if you assume that your application uses wchar_t as if it was char16_t, which it sounds like you are, then you can map directly from std::wstring or wchar_t* to JavaScript strings.