Rewrite test/saucelabs.js.