BaseView: check for 'window' instead of 'global.isServer'

More portable. Allows unit-testing views on the server without
requiring 'rendr/shared/globals'.