scala/javascript cross-compiled sbol2 data model