Try to create a browser gui application using javascript, see how many resources it uses and how much time it takes you compared with Delphi, and just then, get out of my lawn.
Indeed it would - very easy to start with; and, today’s web browsers are extremely powerful VMs.