>>21
Strange, especially considering how slow JavaScript functions are.
On my Intel i5 CPU, my version was 3 seconds faster. Optimization is often architecture-specific.
Also, I have never written anything more complex than a Hello World in JavaScript.