Make the global object be the Window object. Fixes #833.