Take a look at a caproj, and the c2 runtime in a text editor.
Its a little more complicated than making a translation.
In a way a C2 game is already being interpreted into javascript, which is itself an interpreted language.
To look at things work wise, would you rather have a Unity exporter, or C3?