working on js<->lua interop