More work on JS/C++ integration