Maybe instance for ToJSRef