A lot of people get confused about JavaScript and DOM performance. Now, of course it's possible to write terribly slow apps in JavaScript, but the same is true for C.
When used properly, JavaScript can actually be quite speedy (but don't use it for huge calculations).