docs: public static Object javaToJS(Object value, Scriptable scope)
      {
          if (value instanceof String || value instanceof Number
              || value instanceof Boolean || value instanceof Scriptable)
          {
              return value;
          } else if (value instanceof Character) {
              return String.valueOf(((Character)value).charValue());
          } else {
              Context cx = Context.getContext();
              return cx.getWrapFactory().wrap(cx, scope, value, null);
          }
      }