Define `window' and `globalEval' to work in other js environments