Fix `__extends` helper in certain testing contexts
When using the js-dom library in test environments, our custom __extend
function wasn't wired up to the global context directly. This fixes the issue.
When using the js-dom library in test environments, our custom __extend
function wasn't wired up to the global context directly. This fixes the issue.