A javascript function to convert between C/C++ structs and JS objects in emscripten converted code.