I also want to be able to run javascript (and the rest of the browser) deterministically in a test environment, and run tests, each with different timing characteristics.
Of course, I want to run my server in the same way.
So perhaps this is better done inside some "deterministic virtual machine", where the browser and server are run deterministically hand-in-hand.