Javascript sure has come a long way in terms of performance. Just have a look at Broadway, an H.264 decoder implemented in Javascript. It draws at the pixel level on the HTML Canvas element. Actually, it’s the Android decoder compiled/ported to Javascript using Emscriptem which in turn uses the LLVM.

TL;DR; Watch the demo.