pub fn to_bool(value_ref: &JSValueRef) -> Result<bool, JsError>