Defines document global as local