Congrats, porting a Java codebase of that size is no small undertaking.
The engine, server and client, is 100% hand coded in Java, and the client portion of that is what we manually 'ported' to Javascript. I say 'ported' in quotes, as though lots of the new code performs the same or similar job to the existing Java client (bugs and all!), its implementation is sometimes quite different to that of the original Java version.