move to jvm/js build, export js features
remove global context