MIX: s/document/JavaScript global environment/g