added global document and navigator obj