use window explicitely instead of implicit this, which is not valid in strict mode