Changed SetJsValueToGo to avoid SIGSEGV