add ability to accept input value from C++ callback to javascript.