Function getDocument

Return the global document instance.