Initial JVM module typescript conversion

This is fun!