FromJSRef instance for Maybe a