Add ToJSRef and FromJSRef instances