Actually, I think it is much easier and less error-prone (and hence more secure) to translate from one machine language to another, than it is to translate Javascript to machine language. Hence, I don't understand why we don't use some form of machine language instead of Javascript on the web.
The number of different cases to tackle is certainly much smaller.
The number of different cases to tackle is certainly much smaller.