testharness.js controlling its own window