This is a speed test of your browsers javascript engine, yes, javascript can be a primary factor of speed. Once the html and script have been downloaded by your browser, it must get parsed and processed by your browser. I honestly wasn't surprised as to which browser outperformed the rest, it's code is written so low level.
Javascript Browser Speedtest