Instead for this simple project I've added one expect/actual function in Koin configuration, and delegated api to Kilua's own rest client. It works fine, but probably it would be bigger problem with larger projects. With this I've managed to get the SSR engine work with JS target.