WebAssembly vs. JavaScript: Security, Speed, Flexibility