I might shelf wheatleaf and port wine to javascript like how fengari ported lua to javascript
The way wine works, is that it basically runs the exe on linux, as they are both x86, and it just converts windows syscalls to linux syscalls, and same for dlls.