Right, but you can't write intensive algorithms and procedures in JS, because it would be very slow, you have to move those to the server side, which incurs the network lag.
You do to get simulations working properly.
Also if you are offloading stuff to the cloud you need low latency.