emscripten_get_now enabled for SpiderMonkey, optimization and test.

Replaces pull request #1147.