remove JS_SET_RVAL
Fix conversion functions