Migrate JavaScript wrappers from sbtx